package com.mh.zookeeper.zkclient;

import org.I0Itec.zkclient.ZkClient;

import static com.mh.zookeeper.PropertiesUtils.getZookeeperConnectStr;

/**
 * @author MH
 * @since 2021-12-21
 */
public class CreateNode {

    public static void main(String[] args) {
        ZkClient zkClient = new ZkClient(getZookeeperConnectStr());
        System.out.println("会话被创建了..");

        zkClient.createPersistent("/lg-zkclient/c1", true);
        System.out.println("节点递归创建完成");

    }

}
